package com.example.project1form;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.LinearLayout;

public class Form2 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_form2);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_form2, menu);
		return true;
	}
	
	
	public void buttonClickYes(View view){
		LinearLayout ll1 = (LinearLayout)findViewById(R.id.LifeInsuranceOptions);
		ll1.setVisibility(View.VISIBLE);

	}
	public void buttonClickNo(View view){
			LinearLayout ll1 = (LinearLayout)findViewById(R.id.LifeInsuranceOptions);
			ll1.setVisibility(View.GONE);
		
	}

	
	public void nextPage (View view){
		Intent intent_next = new Intent (this, Form3.class);
		startActivity(intent_next);
	}
	
	
	public void previousPage (View view){
		Intent intent_previous = new Intent (this, Form1.class);
		startActivity(intent_previous);
	}

}
